<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>栏目管理</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/admin_style.css" />
<style type="text/css">
<!--
.t1 {
	background-color: #FFEA93;
}
.t2 {
	background-color: #FFF3EE;
}

-->
</style>
</head>

<body>

<!-- layout::Admin:Syscolumn:inc_top::0 -->
 <?php if(empty($syscolumns) == true): ?>对不起，现在还没有栏目!请<a href="__URL__/add/parid/<?php echo ($_GET['parid']); ?>">添加</a><?php else: ?>
<table  border="0" cellspacing="5"  cellpadding="0" style="text-align:center">
  <tr>
    <td>栏目名称</td>
    <td>栏目英文名称</td>
    <td>栏目网址</td>
    <td>顺序</td>
    <td>操作</td>
    <td>是否显示</td>
    <td>左侧显示</td>
    <td>字段管理</td>
  </tr>
  <?php if(is_array($syscolumns)): $i = 0; $__LIST__ = $syscolumns;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr onmouseover="this.className='t1'" onmouseout="this.className='t2'" class="t2">
    <td><a href="__URL__/index/parid/<?php echo ($vo["id"]); ?>"><?php echo ($vo["col_name"]); ?></a></td>
    <td><?php echo ($vo["col_eng_name"]); ?></td>
    <td><?php echo ($vo["col_url"]); ?></td>
    <td><?php if($vo["sequence"] < $maxseq): ?><a href="__URL__/up/id/<?php echo ($vo["id"]); ?>">↑</a><?php endif; ?>&nbsp;<?php if($vo["sequence"] > $minseq): ?><a href="__URL__/down/id/<?php echo ($vo["id"]); ?>">↓</a><?php endif; ?></td>
    <td><a href="__URL__/edit/id/<?php echo ($vo["id"]); ?>">修改</a>&nbsp;<a href="__URL__/del/id/<?php echo ($vo["id"]); ?>" onclick="if(!confirm('同时会删除子栏目,你确认要删除吗？')){return false;}">删除</a><?php if(!empty($vo["col_eng_name"])): ?>&nbsp;<a href="__URL__/sysfield_group/table/<?php echo ($vo["col_eng_name"]); ?>">字段分组</a><?php endif; ?></td>
    <td><?php if($vo["is_show"] == true): ?><a href="__URL__/setshow/is_show/<?php echo ($vo["is_show"]); ?>/id/<?php echo ($vo["id"]); ?>/parid/<?php echo ($_GET['parid']); ?>">√</a><?php else: ?><a href="__URL__/setshow/is_show/<?php echo ($vo["is_show"]); ?>/id/<?php echo ($vo["id"]); ?>/parid/<?php echo ($_GET['parid']); ?>">×</a><?php endif; ?></td>
    <td><?php if($vo["left_show"] == true): ?><a href="__URL__/setshow/left_show/<?php echo ($vo["left_show"]); ?>/id/<?php echo ($vo["id"]); ?>/parid/<?php echo ($_GET['parid']); ?>">√</a><?php else: ?><a href="__URL__/setshow/left_show/<?php echo ($vo["left_show"]); ?>/id/<?php echo ($vo["id"]); ?>/parid/<?php echo ($_GET['parid']); ?>">×</a><?php endif; ?></td>
    <td><?php if(empty($vo['col_eng_name']) == false): ?><a href="__APP__/admin/sysfield/index/table/<?php echo ($vo["col_eng_name"]); ?>">修改字段</a><?php endif; ?></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table><?php endif; ?>
</body>
</html>